package com.sq.controller;

import com.sq.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 作者：苏强
 * 描述: 永无bug
 */
@Controller
@Slf4j
@RequestMapping("demo")
public class DemoController {
    @Autowired
    private DemoService service;


    @ResponseBody
    @GetMapping("list")
    public Object list(){
        log.info("后台管理业务打印");
       return service.selectList();
    }
}
